package com.wjf.birdfish.util.md5;

import java.io.IOException;


/**
 * 计算文件的MD5
 */
public class GetFileMD5 {

	public static void main(String[] args){
		if (args.length != 1) {
			System.err.printf("Usage: %s [generic options] <filePath>\n",	FileMD5.class.getSimpleName());
			System.exit(0);
		}
		
		try {
			System.out.println(FileMD5.getFileMD5String(args[0]));
		} catch (IOException e) {
			System.err.printf(e.getMessage());
		}
	}
}